<%@ page language="java" pageEncoding="utf-8" %>
<%@ include file="/include/taglibs.jsp" %>
<script src="${path}/static/taoshunda/city/hotcity.js"></script>




<table id="table"
       data-toggle="table"
       data-url="${path}/web/city/queryHotCity"
       data-toolbar="#toolbar"
       data-side-pagination="server"
       data-pagination="true"
       data-page-list="[5, 10, 20, 50, 100, 200]"
>
    <thead>
    <tr>

        <th data-field="name">城市名称</th>
        <th data-field="sorting">排名</th>
        <th data-formatter="hotcityFormatter" data-events="hotcityEvent">操作</th>
    </tr>
    </thead>
</table>

<!--修改排名的顺序-->
<div id="showOrderNum-div" class="slidingmenu box-model box box-info">
    <div class="box-header">
        <h3 class="box-title">修改排名</h3>
    </div>
    <div class="box-body">
        <form role="form" action="/web/city/updateSorting" method="post" id="mergeOrderNum">
            <div class="form-group">
                <input type="hidden" class="form-control required" id="id" name="id" value="">
                <input type="text" class="form-control required" id="sorting" name="sorting" value="">
            </div>
        </form>
    </div>
    <div class="box-footer">
        <button class="btn btn-info" data-event="merge-orderNum">确定</button>
        &nbsp;
        <button class="btn btn-danger close-model">关闭</button>
    </div>
</div>


<!--修改城市名称-->
<div id="showcityname-div" class="slidingmenu box-model box box-info">
    <div class="box-header">
        <h3 class="box-title">编辑</h3>
    </div>
    <div class="box-body">
        <form role="form" action="/web/city/updateCityName" method="post" id="mergeCityName">
            <div class="form-group">
                <input type="hidden" class="form-control required" id="cityId" name="id" value="">
                <input type="text" class="form-control required" id="cityName" name="name" value="">
            </div>
        </form>
    </div>
    <div class="box-footer">
        <button class="btn btn-info" data-event="merge-cityname">确定</button>
        &nbsp;
        <button class="btn btn-danger close-model">关闭</button>
    </div>
</div>